package mission4propre;

@SuppressWarnings("rawtypes")
public class AVLNode
{
	// Constructors
	
	public AVLNode( Comparable theElement )
	{
		this( theElement, null, null );
	}

	public AVLNode( Comparable theElement, AVLNode lt, AVLNode rt )
	{
		element  = theElement;
		left     = lt;
		right    = rt;
		height   = 0;
	}

	// Friendly data; accessible by other package routines
	public Comparable element;      // The data in the node
	public AVLNode    left;         // Left child
	public AVLNode    right;        // Right child
	public int        height;       // Height
}